home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Applications / Moscow ML 1.31 / source code / mosml / src / runtime / makefile.dos < prev    next >
Encoding:
Makefile  |  1996-07-03  |  6.8 KB  |  156 lines  |  [TEXT/R*ch]

  1. # Makefile for the Caml Light runtime system (DOS/Windows)
  2. # Adapted 1994-08-21 for Moscow SML and the corresponding go32 1.12
  3.  
  4. # NOTE: compiling with gcc for the i386 (Linux or DOS/Windows), the
  5. # option "-fno-defer-pop" is extremely important; its absence causes
  6. # a space leak --- the C stack grows without bounds. PS 1994-09-01
  7.  
  8. BINDIR=C:\mosml\bin
  9. CC=gcc
  10. CFLAGS=-O -DANSI -fno-defer-pop
  11. LIBS=-lgrx -lpc -lm
  12. RUNTIME32=go32t.exe
  13.  
  14. OBJS=interp.o misc.o stacks.o fix_code.o main.o fail.o signals.o debugcom.o \
  15.   freelist.o major_gc.o minor_gc.o memory.o alloc.o roots.o \
  16.   compare.o ints.o floats.o str.o io.o \
  17.   extern.o externcp.o intern.o interncp.o \
  18.   hash.o sys.o meta.o parsing.o lexing.o gc_ctrl.o graph.o msdos.o mosml.o
  19.  
  20.  
  21. DOBJS=debugger.o
  22.  
  23. PRIMS=compare.c extern.c externcp.c floats.c gc_ctrl.c hash.c \
  24.   intern.c interncp.c interp.c ints.c io.c lexing.c meta.c parsing.c \
  25.   str.c sys.c graph.c mosml.c
  26.  
  27. all: camlrun.exe
  28.  
  29. camlrun.exe: $(OBJS) prims.o $(RUNTIME32)
  30.     $(CC) $(CFLAGS) -o camlrun @&&!
  31. prims.o $(OBJS) $(LIBS)
  32. !
  33.     strip camlrun
  34.     coff2exe -s $(RUNTIME32) camlrun
  35.  
  36. camlrund.exe: opnames.h $(OBJS) prims.o $(DOBJS) $(RUNTIME32)
  37.     $(CC) $(CFLAGS) -o camlrund @&&!
  38. prims.o $(OBJS) $(DOBJS) $(LIBS)
  39. !
  40.     coff2exe -s $(RUNTIME32) camlrund 
  41.  
  42. clean:
  43.     del camlrun.exe
  44.     del camlrun
  45.     del camlrund.exe
  46.     del camlrund
  47.     del *.o
  48.     del prims
  49.     del prims.c
  50.     del opnames.h
  51.     del jumptbl.h
  52.     del makefile.bak
  53.  
  54. install:
  55.     copy camlrun.exe $(BINDIR)
  56.  
  57. prims.c: $(PRIMS)
  58.     perl ../tools/findprim prims <<!
  59. $(PRIMS)
  60. !
  61.     perl ../tools/mkprims prims > prims.c
  62.  
  63. opnames.h : instruct.h
  64.     perl ../tools/mkopnam instruct.h > opnames.h
  65.  
  66. # jumptbl.h is required only if you have GCC 2.0 or later
  67. jumptbl.h : instruct.h
  68.     perl ../tools/mkjumptbl instruct.h > jumptbl.h
  69.  
  70. .c.o:
  71.     $(CC) $(CFLAGS) -c {$< }
  72.  
  73. depend : prims.c opnames.h jumptbl.h
  74.     del makefile.bak
  75.     rename makefile makefile.bak
  76.     perl ../tools/cutdeps makefile.bak > makefile
  77.     gcc -MM $(CFLAGS) *.c >> makefile
  78.  
  79. ### EVERYTHING THAT GOES BEYOND THIS COMMENT WILL BE ERASED WITHOUT WARNING
  80. ### DO NOT DELETE THIS LINE
  81. alloc.o: alloc.c alloc.h misc.h config.h ../config/m.h ../config/s.h mlvalues.h \
  82.   debugger.h major_gc.h freelist.h memory.h gc.h minor_gc.h stacks.h
  83. compare.o: compare.c fail.h misc.h config.h ../config/m.h ../config/s.h \
  84.   mlvalues.h memory.h gc.h major_gc.h freelist.h minor_gc.h str.h
  85. debugcom.o: debugcom.c misc.h config.h ../config/m.h ../config/s.h debugger.h \
  86.   mlvalues.h fail.h stacks.h memory.h gc.h major_gc.h freelist.h minor_gc.h io.h \
  87.   debugcom.h
  88. debugger.o: debugger.c
  89. extern.o: extern.c debugger.h misc.h config.h ../config/m.h ../config/s.h \
  90.   mlvalues.h fail.h gc.h intext.h io.h memory.h major_gc.h freelist.h minor_gc.h
  91. externcp.o: externcp.c debugger.h misc.h config.h ../config/m.h ../config/s.h \
  92.   mlvalues.h fail.h gc.h intext.h io.h memory.h major_gc.h freelist.h minor_gc.h \
  93.   reverse.h
  94. fail.o: fail.c alloc.h misc.h config.h ../config/m.h ../config/s.h mlvalues.h \
  95.   fail.h memory.h gc.h major_gc.h freelist.h minor_gc.h signals.h
  96. fix_code.o: fix_code.c config.h ../config/m.h ../config/s.h misc.h mlvalues.h \
  97.   instruct.h reverse.h
  98. floats.o: floats.c alloc.h misc.h config.h ../config/m.h ../config/s.h \
  99.   mlvalues.h fail.h memory.h gc.h major_gc.h freelist.h minor_gc.h debugger.h
  100. freelist.o: freelist.c config.h ../config/m.h ../config/s.h debugger.h misc.h \
  101.   mlvalues.h freelist.h gc.h gc_ctrl.h major_gc.h
  102. gc_ctrl.o: gc_ctrl.c alloc.h misc.h config.h ../config/m.h ../config/s.h \
  103.   mlvalues.h debugger.h gc.h gc_ctrl.h major_gc.h freelist.h minor_gc.h
  104. graph.o: graph.c mlvalues.h config.h ../config/m.h ../config/s.h misc.h alloc.h \
  105.   memory.h gc.h major_gc.h freelist.h minor_gc.h fail.h
  106. hash.o: hash.c mlvalues.h config.h ../config/m.h ../config/s.h misc.h memory.h \
  107.   gc.h major_gc.h freelist.h minor_gc.h str.h
  108. intern.o: intern.c debugger.h misc.h config.h ../config/m.h ../config/s.h \
  109.   mlvalues.h fail.h gc.h intext.h io.h memory.h major_gc.h freelist.h minor_gc.h \
  110.   reverse.h
  111. interncp.o: interncp.c debugger.h misc.h config.h ../config/m.h ../config/s.h \
  112.   mlvalues.h fail.h gc.h intext.h io.h memory.h major_gc.h freelist.h minor_gc.h \
  113.   reverse.h
  114. interp.o: interp.c alloc.h misc.h config.h ../config/m.h ../config/s.h \
  115.   mlvalues.h debugger.h fail.h instruct.h memory.h gc.h major_gc.h freelist.h \
  116.   minor_gc.h prims.h signals.h stacks.h str.h unalignd.h debugcom.h jumptbl.h
  117. ints.o: ints.c alloc.h misc.h config.h ../config/m.h ../config/s.h mlvalues.h \
  118.   fail.h memory.h gc.h major_gc.h freelist.h minor_gc.h
  119. io.o: io.c alloc.h misc.h config.h ../config/m.h ../config/s.h mlvalues.h fail.h \
  120.   io.h memory.h gc.h major_gc.h freelist.h minor_gc.h signals.h sys.h
  121. lexing.o: lexing.c mlvalues.h config.h ../config/m.h ../config/s.h misc.h \
  122.   stacks.h memory.h gc.h major_gc.h freelist.h minor_gc.h str.h
  123. main.o: main.c version.h alloc.h misc.h config.h ../config/m.h ../config/s.h \
  124.   mlvalues.h exec.h fail.h gc.h globals.h intext.h io.h stacks.h memory.h \
  125.   major_gc.h freelist.h minor_gc.h sys.h debugcom.h
  126. major_gc.o: major_gc.c config.h ../config/m.h ../config/s.h debugger.h misc.h \
  127.   mlvalues.h fail.h freelist.h gc.h gc_ctrl.h globals.h major_gc.h roots.h
  128. memory.o: memory.c debugger.h misc.h config.h ../config/m.h ../config/s.h \
  129.   mlvalues.h fail.h freelist.h gc.h gc_ctrl.h major_gc.h memory.h minor_gc.h
  130. meta.o: meta.c alloc.h misc.h config.h ../config/m.h ../config/s.h mlvalues.h \
  131.   globals.h major_gc.h freelist.h memory.h gc.h minor_gc.h prims.h
  132. minor_gc.o: minor_gc.c config.h ../config/m.h ../config/s.h debugger.h misc.h \
  133.   mlvalues.h fail.h gc.h gc_ctrl.h major_gc.h freelist.h memory.h minor_gc.h \
  134.   roots.h
  135. misc.o: misc.c config.h ../config/m.h ../config/s.h debugger.h misc.h mlvalues.h
  136. mosml.o: mosml.c fail.h misc.h config.h ../config/m.h ../config/s.h mlvalues.h \
  137.   memory.h gc.h major_gc.h freelist.h minor_gc.h str.h
  138. msdos.o: msdos.c mlvalues.h config.h ../config/m.h ../config/s.h misc.h \
  139.   signals.h instruct.h fail.h
  140. parsing.o: parsing.c config.h ../config/m.h ../config/s.h mlvalues.h misc.h \
  141.   memory.h gc.h major_gc.h freelist.h minor_gc.h
  142. prims.o: prims.c mlvalues.h config.h ../config/m.h ../config/s.h misc.h prims.h
  143. roots.o: roots.c debugger.h misc.h config.h ../config/m.h ../config/s.h \
  144.   mlvalues.h memory.h gc.h major_gc.h freelist.h minor_gc.h stacks.h
  145. signals.o: signals.c alloc.h misc.h config.h ../config/m.h ../config/s.h \
  146.   mlvalues.h signals.h stacks.h memory.h gc.h major_gc.h freelist.h minor_gc.h
  147. stacks.o: stacks.c config.h ../config/m.h ../config/s.h debugger.h misc.h \
  148.   mlvalues.h debugcom.h fail.h stacks.h memory.h gc.h major_gc.h freelist.h \
  149.   minor_gc.h
  150. str.o: str.c alloc.h misc.h config.h ../config/m.h ../config/s.h mlvalues.h \
  151.   debugger.h
  152. sys.o: sys.c config.h ../config/m.h ../config/s.h alloc.h misc.h mlvalues.h \
  153.   debugcom.h fail.h globals.h instruct.h signals.h stacks.h memory.h gc.h \
  154.   major_gc.h freelist.h minor_gc.h
  155. unix.o: unix.c
  156.